<div>
    <div class="box border grey" >
        <div class="box-title" ng-init="messageShow=1">
            <h4 ng-show="messageShow==1">基本信息</h4>
            <h4 ng-show="messageShow==2">联系信息</h4>
            <h4 ng-show="messageShow==3">日期信息</h4>
            <div class="tools">
                <h4 ng-show="messageShow!=1" ng-click="messageShow=1">基本信息</h4>
                <h4 ng-show="messageShow!=2" ng-click="messageShow=2">联系信息</h4>
                <h4 ng-show="messageShow!=3" ng-click="messageShow=3">日期信息</h4>
            </div>
        </div>
        <div class="box-body">
            <div ng-repeat="divItem in dataStruct" >
                <div ng-show="messageShow==1" ng-if="divItem.type=='normal'" traversal-datastruct info-struct="divItem.struct"  info-traversal="oppInfoPointer[divItem.blockName]" offset="0" blockname="{{divItem.blockName}}" dirty-set="dirtySet(index)" style="padding-left: 8px;padding-right: 8px"></div>
                <div ng-show="messageShow==3" ng-if="divItem.type=='repeat'" repeat-datastruct info-struct="divItem.struct"  info-traversal="oppInfoPointer[divItem.blockName]" blockname="{{divItem.blockName}}" pre-name="{{divItem.preName}}" dirty-set="dirtySet(index)"  style="padding-left: 8px;padding-right: 8px"></div>
            </div>
            <table ng-show="messageShow==2" class="table table-hover">
                <tr ng-dblclick="selectCompany('customerId')">
                    <td class="col-md-3">客户(公司)</td>
                    <td class="col-md-9">
                        {{getCompanyNameById(presentOppInfo.customerId)}}
                        <span style="color: #7aba7b">{{getTopName(presentOppInfo.customerId)}}</span>
                    </td>
                </tr>
                <tr ng-dblclick="selectContact('customerContactId',getCompanyById(presentOppInfo.customerId))">
                    <td class="col-md-3">客户(公司)联系人</td>
                    <td class="col-md-9">{{getContactNameById(presentOppInfo.customerContactId)}}</td>
                </tr>
                <tr ng-dblclick="selectCompany('partnerId')">
                    <td class="col-md-3">合作者(公司)</td>
                    <td class="col-md-9">{{getCompanyNameById(presentOppInfo.partnerId)}}</td>
                </tr>
                <tr ng-dblclick="selectContact('partnerContactId',getCompanyById(presentOppInfo.partnerId))">
                    <td class="col-md-3">合作者(公司)联系人</td>
                    <td class="col-md-9">{{getContactNameById(presentOppInfo.partnerContactId)}}</td>
                </tr>
                <tr ng-dblclick="selectCompany('competitorId')">
                    <td class="col-md-3">竞争者(公司)</td>
                    <td class="col-md-9">{{getCompanyNameById(presentOppInfo.competitorId)}}</td>
                </tr>
                <tr ng-dblclick="selectContact('competitorContactId',getCompanyById(presentOppInfo.competitorId))">
                    <td class="col-md-3">竞争者(公司)联系人</td>
                    <td class="col-md-9">{{getContactNameById(presentOppInfo.competitorContactId)}}</td>
                </tr>
            </table>
        </div>
        <div class="box-tail text-center" ng-show="oppDirty">
            <a class="btn btn-success" ng-click="updateOppInfo()">保存</a>
            <a class="btn btn-success" ng-click="resetOppInfo(presentOppInfo.id)">重置</a>
        </div>
    </div>
</div>